home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / u_man / cat1 / getabi.z / getabi
Encoding:
Text File  |  2002-10-03  |  2.8 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ggggeeeettttaaaabbbbiiii((((1111))))                                                            ggggeeeettttaaaabbbbiiii((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      getabi - determine which ABI to use
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ggggeeeettttaaaabbbbiiii [size] <ignore|preserve|remove|add> [<args>]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _g_e_t_a_b_i is used to determine whether to use the 32-bit ABI (_a_b_i_3_2) or the
  16.      64-bit ABI (_a_b_i_6_4). It returns the ABI enumeration values as defined in
  17.      /_u_s_r/_i_n_c_l_u_d_e/_g_e_t_a_b_i._h, and writes the new _a_r_g_s list on standard output.
  18.  
  19.      First it checks the _a_r_g_s for "-32" or "-64".  If neither of these is
  20.      given, then it checks the _a_r_g_s for a "-mips[1-4]" option.  Mips 1 and 2
  21.      imply _a_b_i_3_2 while mips 3 and 4 imply _a_b_i_6_4. If none of the _a_r_g_s options
  22.      specify the abi, then we check the _S_G_I__A_B_I environment variable, which
  23.      can be set to either "-32" or "-64".  If _S_G_I__A_B_I is not in the
  24.      environment, then we check what kernel is installed.  If we are running
  25.      on a system that has the 64-bit kernel, then we default to _a_b_i_6_4; else we
  26.      default to _a_b_i_3_2.
  27.  
  28.      The optional _s_i_z_e argument says to return the ABI for the generic size
  29.      (_a_b_i_3_2 or _a_b_i_6_4), rather than the specific ABI (_a_b_i_o_3_2 or _a_b_i_6_4).
  30.  
  31.      The _i_g_n_o_r_e argument says to ignore the _a_r_g_s list when determining the
  32.      ABI; the _p_r_e_s_e_r_v_e argument says to preserve the _a_r_g_s list, while the
  33.      _r_e_m_o_v_e and _a_d_d arguments respectively remove and add the ABI value from
  34.      the _a_r_g_s list.
  35.  
  36. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  37.      A ccccsssshhhh example is as follows:
  38.           set st = `getabi remove -32 -keep t.c`
  39.           # echo abi value
  40.           echo $status
  41.           # echo new args list
  42.           echo $st
  43.  
  44.      A sssshhhh example is as follows:
  45.           args=`getabi size add foo -a t.c`
  46.           # echo abi value
  47.           echo $?
  48.           # echo new args list
  49.           echo $args
  50.  
  51. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  52.      _gggg_eeee_tttt_aaaa_bbbb_iiii(3c)
  53.  
  54. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  55.      _gggg_eeee_tttt_aaaa_bbbb_iiii prints an error message on the standard error and returns _n_o_a_b_i
  56.      when it encounters an error.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.